package com.yuan.java.beanCycle;

/**
 * Created by 袁恩光 on 2017/12/1.
 */
public class A {

    private B b;

    public A(B b) {
        this.b = b;
    }

    public A() {
        b = new B(this);
    }

    public void test(){
        System.out.println("aaaaaaaaaaa");
    }

    public B getB() {
        return b;
    }

    public void setB(B b) {
        this.b = b;
    }
}
